<template>
  <div class="loading">
    <div class="loading-inner"></div>
  </div>
</template>

<style lang="scss" scoped>
.loading {
  background-color: rgba(57, 106, 255, 0.3);
  left: 0px;
  top: 0px;
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  &-inner {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    position: relative;
    animation: rotate 1.5s infinite linear;
    &::after {
      content: "";
      position: absolute;
      top: 0px;
      left: 0px;
      bottom: 0px;
      right: 0px;
      border-radius: 50%;
      border-top: 2px solid #ffffff;
      filter: drop-shadow(0 0 1px #b78eff) drop-shadow(0 0 2px #b78eff)
        drop-shadow(0 0 4px #b78eff);
    }
    &::before {
      content: "";
      position: absolute;
      top: 0px;
      left: 0px;
      bottom: 0px;
      right: 0px;
      border-radius: 50%;
      border-bottom: 2px solid #ffffff;
      filter: drop-shadow(0 0 1px #ffec41) drop-shadow(0 0 2px #ffec41)
        drop-shadow(0 0 4px #ffec41);
    }
  }
}
@keyframes rotate {
  100% {
    transform: rotate(360deg);
  }
}
</style>
